package com.easy.mapper;

import com.easy.bean.Brand;
import com.easy.bean.Product;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ProductDao {
    int add(@Param("product" )Product product);

    int del(@Param("id") Integer id);

    int edit(@Param("product") Product product);

    Product one(@Param("id") Integer id);

    List<Product> all(@Param("product") Product product);
    List<Product> page( @Param("product") Product product,@Param("page") Page page);
    int pageCount(@Param("product") Product product);

}
